/// data : {"coinCount":2370,"level":24,"nickname":"","rank":"708","userId":75347,"username":"w**"}
/// errorCode : 0
/// errorMsg : ""

class Coin_personal_bean {
  Data _data;
  int _errorCode;
  String _errorMsg;

  Data get data => _data;
  int get errorCode => _errorCode;
  String get errorMsg => _errorMsg;

  Coin_personal_bean({
      Data data, 
      int errorCode, 
      String errorMsg}){
    _data = data;
    _errorCode = errorCode;
    _errorMsg = errorMsg;
}

  Coin_personal_bean.fromJson(dynamic json) {
    _data = json["data"] != null ? Data.fromJson(json["data"]) : null;
    _errorCode = json["errorCode"];
    _errorMsg = json["errorMsg"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    if (_data != null) {
      map["data"] = _data.toJson();
    }
    map["errorCode"] = _errorCode;
    map["errorMsg"] = _errorMsg;
    return map;
  }

}

/// coinCount : 2370
/// level : 24
/// nickname : ""
/// rank : "708"
/// userId : 75347
/// username : "w**"

class Data {
  int _coinCount;
  int _level;
  String _nickname;
  String _rank;
  int _userId;
  String _username;

  int get coinCount => _coinCount;
  int get level => _level;
  String get nickname => _nickname;
  String get rank => _rank;
  int get userId => _userId;
  String get username => _username;

  Data({
      int coinCount, 
      int level, 
      String nickname, 
      String rank, 
      int userId, 
      String username}){
    _coinCount = coinCount;
    _level = level;
    _nickname = nickname;
    _rank = rank;
    _userId = userId;
    _username = username;
}

  Data.fromJson(dynamic json) {
    _coinCount = json["coinCount"];
    _level = json["level"];
    _nickname = json["nickname"];
    _rank = json["rank"];
    _userId = json["userId"];
    _username = json["username"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["coinCount"] = _coinCount;
    map["level"] = _level;
    map["nickname"] = _nickname;
    map["rank"] = _rank;
    map["userId"] = _userId;
    map["username"] = _username;
    return map;
  }

}